package com.Homework3;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Random;

public class Test01 {
    public static void main(String[] args) {
        HashSet<Integer> red = new HashSet<>();
        HashSet<Integer> blue = new HashSet<>();
        while (red.size()<6){
            Random random = new Random();
            int i = random.nextInt(33)+1;
            Collections.addAll(red,i);
        }
        Random random = new Random();
        int j = random.nextInt(16)+1;
        Collections.addAll(blue,j);
        System.out.println("红色"+red+" "+"蓝色"+blue);
    }
}
